<template>
  <div id="app">
    <div id="nav">
      <router-link to="/"></router-link>
    </div>
    <router-view/>
  </div>
</template>
<!--<script>-->

<!--  const arr = [-->
<!--    { id: 1 , content: 'aaaa' },-->
<!--    { id: 2 , content: 'bbbb' },-->
<!--    { id: 3 , content: 'cccc' },-->
<!--    { id: 4 , content: 'dddd' },-->
<!--  ]-->

<!--  // const arrItem = arr.map((ele)=> {-->
<!--  //   const item = {}-->
<!--  //   item.id = ele.id-->
<!--  //   item.content = ele.content-->
<!--  //   item.title = 'title'-->
<!--  //   return item-->
<!--  // })-->
<!--  const editItem = arr.find(ele => {-->
<!--    return ele.id == 3-->
<!--  })-->
<!--  editItem.content = '44444444'-->
<!--  console.log(editItem);-->
<!--  console.log(arr);-->
<!--</script>-->
<script lang="ts">
  import { Component,Vue } from 'vue-property-decorator';
  export default class App extends Vue{

  }
</script>
<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
